/// lableName : "交友"
/// userLables : ["男神","女神","幽默","高冷","傲娇","无情","自信","开心","高兴"]

class TagsModel {
  TagsModel({
    String? lableName,
    List<String>? userLables,
  }) {
    _lableName = lableName ?? '';
    _userLables = userLables ?? [];
  }

  TagsModel.fromJson(dynamic json) {
    _lableName = json['lableName'] ?? '';
    _userLables = json['userLables'] != null ? json['userLables'].cast<String>() : [];
  }

  String _lableName = '';
  List<String> _userLables = [];

  TagsModel copyWith({
    String? lableName,
    List<String>? userLables,
  }) => TagsModel(
    lableName: lableName ?? _lableName,
    userLables: userLables ?? _userLables,
  );

  String get lableName => _lableName;
  List<String> get userLables => _userLables;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['lableName'] = _lableName;
    map['userLables'] = _userLables;
    return map;
  }
}
